<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <!-- 直接使用会报错 -->
  <!-- <script type="module" src="./a.js"></script> -->

  <!-- 下面的代码可能要运行在服务器上 -->
  <script src="./system.js"></script>
  <script>
    System.import('./a.js').then(() => console.log(111)).catch(e => console.log(e))
  </script>
</body>
</html>